package com.li.jiang.mapper;

import com.li.jiang.obj.dto.UserLoginData;
import com.li.jiang.obj.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 基本用户表 Mapper 接口
 * </p>
 *
 * @author 李江
 * @since 2024-04-12
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from tb_user where account = #{account} and password = #{password}")
    public User loginByAccount(@Param("account") String account ,@Param("password")String password);

    @Select("select * from tb_user where ")
    public User loginByEmail(User user);


}
